package com.qj.sys.designPattern.responsibilityChainPattern;

import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;

/**
 * @author dlw
 * @date 2025-05-29 19:54
 */
public class RuleCheckContext {
    /**
     * 规则检查结果
     */
    private RuleCheckResult ruleCheckResult = new RuleCheckResult();

    public RuleCheckResult getRuleCheckResult() {
        return ruleCheckResult;
    }

    public boolean hasError() {
        return CollectionUtils.isNotEmpty(ruleCheckResult.getFailedMsgList());
    }
}
